#include "Common.hpp"
#include "Server.hpp"

int main()
{
    Server sv;
    sv.OpenforRead();
    while(true)
    {
        std::string message;
        if(sv.Readpipe(&message) > 0)
        {
            std::cout << "client Say# " << message << std::endl;
        }
        else 
        {
            break;
        }
        
    }
    std::cout << "client quit, me too!" << std::endl;
    sv.ClosePipe();
    return 0;
}